//
//  ThirdCollectionViewCell.m
//  UI_19_数据请求model嵌套
//
//  Created by li cheng on 16/8/12.
//  Copyright © 2016年 li cheng. All rights reserved.
//

#import "ThirdCollectionViewCell.h"

@interface ThirdCollectionViewCell()
@end
@implementation ThirdCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        _myButton = [UIButton buttonWithType:UIButtonTypeSystem];
        _myButton.frame = frame;
        _myButton.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_myButton];
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];
    CGFloat widthOfButton = self.contentView.bounds.size.width;
    CGFloat heightOfButton = self.contentView.bounds.size.height;
    _myButton.frame = CGRectMake(0, 0, widthOfButton, heightOfButton);
}
@end
